Introduction

In my previous blog post, we've seen how we can identify files that change together in one commit.

In this blog post, we take the analysis to an advanced level:

  • We're using a more robust model for determining the similarity of co-changing source code files
  • We're checking the existing modularization of a software system and compare it to the change behavior of the development teams
  • We're creating a visualization that lets us determine the underlying, "hidden" modularization of our software system based on conjoint changes
  • We discuss the results for a concrete software system in detail (with more systems to come in the upcoming blog posts).

We're using Python and pandas as well as some algorithms from the machine learning library scikit-learn and the visualization libraries matplotlib, seaborn and pygal for these purposes.

The System under Investigation

For this analysis, we use a closed-source project that I developed with some friends of mine. It's called "DropOver", a web application that can manage events with features like events' sites, scheduling, comments, todos, file uploads, mail notifications and so on. The architecture of the software system mirrored the feature-based development process: You could quickly locate where code has to be added or changed because the software system's "screaming architecture". This architecture style lead you to the right place because of the explicit, feature-based modularization that was used for the Java packages/namespaces:

It's also important to know, that we developed the software almost strictly feature-based by feature teams (OK, one developer was one team in our case). Nevertheless, the history of this repository should perfectly fit for our analysis of checking the modularization based on co-changing source code files.

The main goal of our analysis is to see if the modules of the software system were changed independently or if they were code was changed randomly across modules boundaries. If the latter would be the case, we should reorganize the software system or the development teams to let software development activities and the surrounding more naturally fit together.

Idea

We can do this kind of analysis pretty easily by using the version control data of a software system like Git. A version control system tracks each change to a file. If more files are changed within one commit, we can assume that those files somehow have something to do with each other. This could be e. g. a direct dependency because two files depend on each other or a semantic dependency which causes an underlying concepts to change across module boundaries.

In this blog post, we take the idea further: We want to find out the degree of similarity of two co-changing files, making the analysis more robust and reliable on one side, but also enabling a better analysis of bigger software systems on the other side by comparing all files of a software system with each other regarding the co-changing properties.

Data

We use a little helper library for importing the data of our project. It's a simple git log with change statistics for each commit and file (you can see here how to retrieve it if you want to do it manually).


In [1]:
from lib.ozapfdis.git_tc import log_numstat

GIT_REPO_DIR = "../../dropover_git/"
git_log = log_numstat(GIT_REPO_DIR)[['sha', 'file']]
git_log.head()


Out[1]:
sha file
1 8c686954 backend/pom-2016-07-16_04-40-56-752.xml
4 97c6ef96 backend/src/test/java/at/dropover/scheduling/i...
6 3f7cf92c backend/src/main/webapp/app/widgets/gallery/js...
7 3f7cf92c backend/src/main/webapp/app/widgets/gallery/vi...
9 ec85fe73 backend/src/main/java/at/dropover/files/intera...

In our case, we only want to check the modularization of our software for Java production code. So we just leave the files that are belonging to the main source code. What to keep here exactly is very specific to your own project. With Jupyter and pandas, we can make our decisions for this transparent and thus retraceable.


In [2]:
prod_code = git_log.copy()
prod_code = prod_code[prod_code.file.str.endswith(".java")]
prod_code = prod_code[prod_code.file.str.startswith("backend/src/main")]
prod_code = prod_code[~prod_code.file.str.endswith("package-info.java")]
prod_code.head()


Out[2]:
sha file
9 ec85fe73 backend/src/main/java/at/dropover/files/intera...
5053 bfea33b8 backend/src/main/java/at/dropover/scheduling/i...
5066 ab9ad48e backend/src/main/java/at/dropover/scheduling/i...
5070 0732e9cb backend/src/main/java/at/dropover/files/intera...
5078 ba1fd215 backend/src/main/java/at/dropover/framework/co...

Analysis

We want to see which files are changing (almost) together. A good start for this is to create this view onto our dataset with the pivot_table method of the underlying pandas' DataFrame.

But before this, we need a marker column that signals that a commit occurred. We can create an additional column named hit for this easily.


In [3]:
prod_code['hit'] = 1
prod_code.head()


Out[3]:
sha file hit
9 ec85fe73 backend/src/main/java/at/dropover/files/intera... 1
5053 bfea33b8 backend/src/main/java/at/dropover/scheduling/i... 1
5066 ab9ad48e backend/src/main/java/at/dropover/scheduling/i... 1
5070 0732e9cb backend/src/main/java/at/dropover/files/intera... 1
5078 ba1fd215 backend/src/main/java/at/dropover/framework/co... 1

Now, we can transform the data as we need it: For the index, we choose the filename, as columns, we choose the unique sha key of a commit. Together with the commit hits as values, we are now able to see which file changes occurred in which commit. Note that the pivoting also change the order of both indexes. They are now sorted alphabetically.


In [4]:
commit_matrix = prod_code.reset_index().pivot_table(
    index='file',
    columns='sha',
    values='hit',
    fill_value=0)
commit_matrix.iloc[0:5,50:55]


Out[4]:
sha 3597d8a2 3b70ea7e 3d3be4ca 3e4ae692 429b3b32
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java 0 0 0 0 0
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java 0 0 0 1 0
backend/src/main/java/at/dropover/comment/boundary/CommentData.java 0 0 0 1 0
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java 0 0 0 0 0
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java 0 0 0 0 0

As already mentioned in a previous blog post, we are now able to look at our problem from a mathematician' s perspective. What we have here now with the commit_matrix is a collection of n-dimensional vectors. Each vector represents a filename and the components/dimensions of such a vector are the commits with either the value 0 or 1.

Calculating similarities between such vectors is a well-known problem with a variety of solutions. In our case, we calculate the distance between the various vectors with the cosines distance metric. The machine learning library scikit-learn provides us with an easy to use implementation.


In [5]:
from sklearn.metrics.pairwise import cosine_distances

dissimilarity_matrix = cosine_distances(commit_matrix)
dissimilarity_matrix[:5,:5]


Out[5]:
array([[ 0.        ,  0.29289322,  0.5       ,  0.18350342,  0.29289322],
       [ 0.29289322,  0.        ,  0.29289322,  0.1339746 ,  0.5       ],
       [ 0.5       ,  0.29289322,  0.        ,  0.59175171,  0.29289322],
       [ 0.18350342,  0.1339746 ,  0.59175171,  0.        ,  0.42264973],
       [ 0.29289322,  0.5       ,  0.29289322,  0.42264973,  0.        ]])

To be able to better understand the result, we add the file names from the commit_matrix as index and column index to the dissimilarity_matrix.


In [6]:
import pandas as pd
dissimilarity_df = pd.DataFrame(
    dissimilarity_matrix,
    index=commit_matrix.index,
    columns=commit_matrix.index)
dissimilarity_df.iloc[:5,:2]


Out[6]:
file backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java 0.000000 0.292893
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java 0.292893 0.000000
backend/src/main/java/at/dropover/comment/boundary/CommentData.java 0.500000 0.292893
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java 0.183503 0.133975
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java 0.292893 0.500000

Now, we see the result in a better representation: For each file pair, we get the distance of the commit vectors. This means that we have now a distance measure that says how dissimilar two files were changed in respect to each other.

Visualization

Heatmap

To get an overview of the result's data, we can plot the matrix with a little heatmap first.


In [7]:
%matplotlib inline
import seaborn as sns

sns.heatmap(
    dissimilarity_df,
    xticklabels=False,
    yticklabels=False
);


Because of the alphabetically ordered filenames and the "feature-first" architecture of the software under investigation, we get the first glimpse of how changes within modules are occurring together and which are not.

To get an even better view, we can first extract the module's names with an easy string operation and use this for the indexes.


In [8]:
modules = dissimilarity_df.copy()
modules.index = modules.index.str.split("/").str[6]
modules.index.name = 'module'
modules.columns = modules.index
modules.iloc[25:30,25:30]


Out[8]:
module comment comment comment creator creator
module
comment 0.000000 0.50000 0.750000 0.50000 0.711325
comment 0.500000 0.00000 0.500000 0.00000 0.422650
comment 0.750000 0.50000 0.000000 0.50000 0.711325
creator 0.500000 0.00000 0.500000 0.00000 0.422650
creator 0.711325 0.42265 0.711325 0.42265 0.000000

Then, we can create another heatmap that shows the name of the modules on both axes for further evaluation. We also just take a look at a subset of the data for representational reasons.


In [9]:
import matplotlib.pyplot as plt
plt.figure(figsize=[10,9])
sns.heatmap(modules.iloc[:180,:180]);


Discussion

  • Starting at the upper left, we see the "comment" module with a pretty dark area very clearly. This means, that files around this module changed together very often.
  • If we go to the middle left, we see dark areas between the "comment" module and the "framework" module as well as the "site" module further down. This shows a change dependency between the "comment" module and the other two (I'll explain later, why it is that way).
  • If we take a look in the middle of the heatmap, we see that the very dark area represents changes of the "mail" module. This module was pretty much changed without touching any other modules. This shows a nice separation of concerns.
  • For the "scheduling" module, we can also see that the changes occurred mostly cohesive within the module.
  • Another interesting aspect is the horizontal line within the "comment" region: These files were changed independently from all other files within the module. These files were the code for an additional data storage technology that was added in later versions of the software system. This pattern repeats for all other modules more or less strongly.

With this visualization, we can get a first impression of how good our software architecture fits the real software development activities. In this case, I would say that you can see most clearly that the source code of the modules changed mostly within the module boundaries. But we have to take a look at the changes that occur in other modules as well when changing a particular module. These could be signs of unwanted dependencies and may lead us to an architectural problem.

Multi-dimensional Scaling

We can create another kind of visualization to check

  • if the code within the modules is only changed altogether and
  • if not, what other modules were changed.

Here, we can help ourselves with a technique called "multi-dimensional scaling" or "MDS" for short. With MDS, we can break down an n-dimensional space to a lower-dimensional space representation. MDS tries to keep the distance proportions of the higher-dimensional space when breaking it down to a lower-dimensional space.

In our case, we can let MDS figure out a 2D representation of our dissimilarity matrix (which is, overall, just a plain multi-dimensional vector space) to see which files get change together. With this, we'll able to see which files are changes together regardless of the modules they belong to.

The machine learning library scikit-learn gives us easy access to the algorithm that we need for this task as well. We just need to say that we have a precomputed dissimilarity matrix when initializing the algorithm and then pass our dissimilarity_df DataFrame to the fit_transform method of the algorithm.


In [10]:
from sklearn.manifold import MDS

# uses a fixed seed for random_state for reproducibility
model = MDS(dissimilarity='precomputed', random_state=0)
dissimilarity_2d = model.fit_transform(dissimilarity_df)
dissimilarity_2d[:5]


Out[10]:
array([[-0.5259277 ,  0.45070158],
       [-0.56826041,  0.21528001],
       [-0.52746829,  0.34756761],
       [-0.55856713,  0.26202797],
       [-0.4036568 ,  0.49803657]])

The result is a 2D matrix that we can plot with matplotlib to get a first glimpse of the distribution of the calculated distances.


In [11]:
plt.figure(figsize=(8,8))
x = dissimilarity_2d[:,0]
y = dissimilarity_2d[:,1]
plt.scatter(x, y);


With the plot above, we see that the 2D transformation somehow worked. But we can't see

  • which filenames are which data points
  • how the modules are grouped all together

So we need to enrich the data a little bit more and search for a better, interactive visualization technique.

Let's add the filenames to the matrix as well as nice column names. We, again, add the information about the module of a source code file to the DataFrame.


In [12]:
dissimilarity_2d_df = pd.DataFrame(
    dissimilarity_2d,
    index=commit_matrix.index,
    columns=["x", "y"])
dissimilarity_2d_df['module'] = dissimilarity_2d_df.index.str.split("/").str[6]
dissimilarity_2d_df.head()


Out[12]:
x y module
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java -0.525928 0.450702 comment
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java -0.568260 0.215280 comment
backend/src/main/java/at/dropover/comment/boundary/CommentData.java -0.527468 0.347568 comment
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java -0.558567 0.262028 comment
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java -0.403657 0.498037 comment

OK, here comes the ugly part: We have to transform all the data to the format our interactive visualization library pygal needs for its XY chart. We need to

  • group the data my modules
  • add every distance information
    • for each file as well as
    • the filename itself

in a specific dictionary-like data structure.

But there is nothing that can hinder us in Python and pandas. So let's do this!

  1. We create a separate DataFrame named plot_data with the module names as index
  2. We join the coordinates x and y into a tuple data structure
  3. We use the filenames from dissimilarity_2d_df's index as labels
  4. We convert both data items to a dictionary
  5. We append each entry for a module to only on module entry

This gives us a new DataFrame with modules as index and per module a list of dictionary-like entries with

  • the filenames as labels and
  • the coordinates as values.

In [13]:
plot_data = pd.DataFrame(index=dissimilarity_2d_df['module'])
plot_data['value'] = tuple(zip(dissimilarity_2d_df['x'], dissimilarity_2d_df['y']))
plot_data['label'] = dissimilarity_2d_df.index
plot_data['data'] = plot_data[['label', 'value']].to_dict('records')
plot_dict = plot_data.groupby(plot_data.index).data.apply(list)
plot_dict


Out[13]:
module
comment       [{'label': 'backend/src/main/java/at/dropover/...
creator       [{'label': 'backend/src/main/java/at/dropover/...
files         [{'label': 'backend/src/main/java/at/dropover/...
framework     [{'label': 'backend/src/main/java/at/dropover/...
mail          [{'label': 'backend/src/main/java/at/dropover/...
scheduling    [{'label': 'backend/src/main/java/at/dropover/...
site          [{'label': 'backend/src/main/java/at/dropover/...
todo          [{'label': 'backend/src/main/java/at/dropover/...
Name: data, dtype: object

With this nice little data structure, we can fill pygal's XY chart and create an interactive chart.


In [14]:
import pygal

xy_chart = pygal.XY(stroke=False)
[xy_chart.add(entry[0], entry[1]) for entry in plot_dict.iteritems()]   
# uncomment to create the interactive chart
# xy_chart.render_in_browser()
xy_chart


Out[14]:
Pygal-0.6-0.6-0.4-0.4-0.2-0.2000.20.20.40.40.60.60.80.8-0.8-0.8-0.6-0.6-0.4-0.4-0.2-0.2000.20.20.40.40.60.60.80.8backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java-0.5259276975: 0.4507015829119.29194982344649128.90953072375777backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java-0.568260408: 0.2152800057103.96466832041452205.12007304736608backend/src/main/java/at/dropover/comment/boundary/CommentData.java-0.527468288: 0.3475676143118.73415269494701162.29600179566137backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java-0.5585671323: 0.2620279749107.47428449843548189.98684638682545backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java-0.4036568016: 0.4980365699163.5622177712679113.58627499263565backend/src/main/java/at/dropover/comment/boundary/GetCommentsRequestModel.java-0.5259276975: 0.4507015829119.29194982344654128.90953072375777backend/src/main/java/at/dropover/comment/boundary/GetCommentsResponseModel.java-0.4036568016: 0.4980365699163.56221777126777113.58627499263548backend/src/main/java/at/dropover/comment/boundary/GetRangedCommentsRequestModel.java-0.568260408: 0.2152800057103.96466832041456205.12007304736608backend/src/main/java/at/dropover/comment/boundary/TimeDiffRequestModel.java-0.4147573032: 0.5811446997159.543091428674686.68255734264642backend/src/main/java/at/dropover/comment/boundary/TimeDiffResponseModel.java-0.527468288: 0.3475676143118.73415269494708162.29600179566148backend/src/main/java/at/dropover/comment/delivery/rest/CommentResource.java0.07714522861: 0.4283990998337.6448117216835136.12927816783514backend/src/main/java/at/dropover/comment/delivery/rest/CommentsResource.java0.02463492751: 0.4720324257318.632559588647122.0043221393941backend/src/main/java/at/dropover/comment/entity/Comment.java-0.527468288: 0.3475676143118.73415269494706162.29600179566148backend/src/main/java/at/dropover/comment/entity/gateway/CommentGateway.java-0.1632027752: 0.2339968372250.62270839568666199.0610707261709backend/src/main/java/at/dropover/comment/entity/gateway/aws/CommentSorter.java-0.5717542733: -0.5151148729102.69965466508009441.5630977721995backend/src/main/java/at/dropover/comment/entity/gateway/aws/DynamoDbCommentGateway.java0.6436212785: -0.04010977441542.7471490255338287.7947109082569backend/src/main/java/at/dropover/comment/entity/gateway/exception/NotSoManyCommentsAvailable.java-0.4329342137: -0.7038373507152.96183025179639502.6562335443685backend/src/main/java/at/dropover/comment/entity/gateway/inmemory/InMemoryCommentStorage.java-0.08142417311: 0.4072767141280.23204922185164142.96700513829757backend/src/main/java/at/dropover/comment/entity/pojo/PojoComment.java-0.1632027752: 0.2339968372250.62270839568666199.06107072617084backend/src/main/java/at/dropover/comment/interactor/AddComment.java0.1053186267: 0.4731287826347.8454721159285121.64941008857545backend/src/main/java/at/dropover/comment/interactor/ChangeComment.java-0.04509227716: 0.2192197351293.38663321246617203.84470603669888backend/src/main/java/at/dropover/comment/interactor/CommentResponseBuilder.java-0.332372681: 0.1916741092189.3718521835673212.7617607525812backend/src/main/java/at/dropover/comment/interactor/CreateTimeDiff.java-0.09694486371: 0.2043352372274.6125178772353208.66310743410065backend/src/main/java/at/dropover/comment/interactor/GetComments.java-0.07479877009: 0.3609258285282.63088964069925157.97168812610835backend/src/main/java/at/dropover/comment/interactor/GetRangedComments.java-0.2229104302: 0.3197433741229.00453125436545171.30324940319997backend/src/main/java/at/dropover/comment/interactor/exception/CommentNotFoundException.java-0.4958959225: 0.2748586598130.1654673066939185.8333042087147backend/src/main/java/at/dropover/comment/interactor/exception/PostNotInPastException.java-0.4036568016: 0.4980365699163.56221777126774113.58627499263565backend/src/main/java/at/dropover/comment/interactor/validation/CommentRequestValidator.java-0.1344921807: 0.3951372925261.01786993843797146.89677197133813backend/src/main/java/at/dropover/creator/boundary/CreatorData.java-0.4036568016: 0.4980365699163.5622177712678113.58627499263565backend/src/main/java/at/dropover/creator/entity/Creator.java-0.2668803585: 0.5888462348213.0844671026793584.18942068192337backend/src/main/java/at/dropover/creator/entity/exception/CreatorNotPersistentException.java0.7947647026: -0.2523519347597.4712093783364356.50162524600694backend/src/main/java/at/dropover/creator/entity/gateway/CreatorGateway.java0.5781792643: -0.2109045549519.0527490807939343.0843024444714backend/src/main/java/at/dropover/creator/entity/gateway/CreatorKey.java0.6412651718: -0.421651007541.8940802956572411.3070269707997backend/src/main/java/at/dropover/creator/entity/gateway/aws/DynamoDbCreatorGateway.java0.6562323307: 0.05936022908547.3131960375111255.5943365873324backend/src/main/java/at/dropover/creator/entity/gateway/inmemory/InMemoryCreatorGateway.java0.6015469476: -0.2056244786527.5134182885315341.3750391017202backend/src/main/java/at/dropover/creator/entity/pojo/PojoCreator.java-0.1853411728: -0.1349752306242.60712311074542318.50450373219496backend/src/main/java/at/dropover/creator/interactor/FormatCreatorNicely.java-0.4881675326: -0.2729155897132.9636629731086363.15848022903083backend/src/main/java/at/dropover/files/boundary/DownloadFileRequestModel.java0.5439953902: 0.6199465293506.6758931225851474.12165059868761backend/src/main/java/at/dropover/files/boundary/DownloadFileResponseModel.java0.5641276865: 0.5941709592513.965135148520782.46570386515037backend/src/main/java/at/dropover/files/boundary/ListFilesResponseModel.java0.5439954082: 0.6199465146506.675899654272974.12165537798307backend/src/main/java/at/dropover/files/boundary/ReportAbuseRequestModel.java-0.3813815826: -0.6658214166171.62734159514784490.34973644349765backend/src/main/java/at/dropover/files/boundary/ReportAbuseResponeModel.java-0.3368303535: -0.7112717568187.75787565470964505.06289533706223backend/src/main/java/at/dropover/files/boundary/UploadFileRequestModel.java0.5903429576: 0.5562578532523.456822182335394.73891347799037backend/src/main/java/at/dropover/files/boundary/UploadFileResponseModel.java0.5810931179: 0.5716894634520.107759605022789.74340120629103backend/src/main/java/at/dropover/files/delivery/rest/FilesResource.java0.6005631845: 0.3512711513527.1572300451608161.0970948493486backend/src/main/java/at/dropover/files/entity/UploaderInformation.java0.4034112216: 0.2423874077455.77499170749206196.34487991264297backend/src/main/java/at/dropover/files/entity/gateway/StreamingFileGateway.java0.4627344209: 0.33895385477.2539701079554165.08444481083814backend/src/main/java/at/dropover/files/entity/gateway/inmemory/FileWithMetadata.java-0.548445451: -0.5569884948111.13901222323881455.11840339934065backend/src/main/java/at/dropover/files/entity/gateway/inmemory/InMemoryFileGateway.java0.531420227: 0.3382007993502.12284033497036165.3282219664747backend/src/main/java/at/dropover/files/entity/gateway/s3/S3FileGateway.java0.5091523571: 0.387498729494.06037738655715149.36952352296117backend/src/main/java/at/dropover/files/entity/pojo/PojoUploaderInfo.java0.4515143976: 0.2532002155473.191568880004192.84456376824096backend/src/main/java/at/dropover/files/exception/FileNotPersistentException.java0.2344643639: 0.1277598115394.60489390520985233.45206171470699backend/src/main/java/at/dropover/files/exception/FileTransferException.java0.2344643639: 0.1277598115394.60489390520985233.45206171470693backend/src/main/java/at/dropover/files/exception/InvalidFileException.java0.2344643639: 0.1277598115394.60489390520985233.45206171470699backend/src/main/java/at/dropover/files/interactor/DownloadFile.java0.4447170769: 0.3991240109470.73048273732223145.60619369606752backend/src/main/java/at/dropover/files/interactor/ListFiles.java0.4846594903: 0.4186450625485.1923162882577139.28684971276311backend/src/main/java/at/dropover/files/interactor/ReportAbuse.java0.5118081328: 0.07212368597495.02194637762506251.4625574064312backend/src/main/java/at/dropover/files/interactor/UploadFile.java0.4784537019: 0.4513004966482.94540451051057128.71565072814263backend/src/main/java/at/dropover/files/validation/FileTransferValidator.java0.3323938889: 0.1938713439430.06195241941407212.05047314452412backend/src/main/java/at/dropover/framework/autoupdate/Autoupdate.java0.2385861316: -0.03195842345396.0972503509475285.1559601006867backend/src/main/java/at/dropover/framework/autoupdate/DynamoDBCurrentVersionDeterminor.java0.2385861316: -0.03195842345396.0972503509474285.1559601006868backend/src/main/java/at/dropover/framework/autoupdate/IllegalUpdateScriptsException.java0.3109741223: 0.03772588981422.3065597892238262.59779288758716backend/src/main/java/at/dropover/framework/autoupdate/UpdateScript.java-0.4910547485: -0.6198796309131.91829712820018475.4774870774338backend/src/main/java/at/dropover/framework/autoupdate/scripts/UpdateToV1.java0.2385861316: -0.03195842345396.0972503509474285.1559601006868backend/src/main/java/at/dropover/framework/boundary/DropoverModel.java-0.2635039827: 0.2022542625214.30694166726155209.33675940166432backend/src/main/java/at/dropover/framework/boundary/RequestModel.java-0.2635039827: 0.2022542625214.30694166726155209.33675940166432backend/src/main/java/at/dropover/framework/boundary/ResponseModel.java-0.4418365104: 0.343564942149.73860157116545163.59174466009415backend/src/main/java/at/dropover/framework/boundary/SiteDependentRequestModel.java-0.7495340101: 0.0380755172238.331461978476064262.484611694592backend/src/main/java/at/dropover/framework/boundary/SynchronousDeliveryInteractorBoundary.java-0.1632027752: 0.2339968372250.62270839568666199.0610707261709backend/src/main/java/at/dropover/framework/configuration/ConfigurationFile.java0.6599427555: -0.1153122187548.6566187708204312.1392044246152backend/src/main/java/at/dropover/framework/configuration/GatewayFactory.java0.7254736606: 0.4058800446572.3832031371055143.4191342160338backend/src/main/java/at/dropover/framework/configuration/InterceptorFactory.java0.5144144067: -0.2457234823495.9655924070469354.35586631471585backend/src/main/java/at/dropover/framework/configuration/MisconfigurationException.java0.2333809691: -0.7659113901394.2126322975838522.7508071236258backend/src/main/java/at/dropover/framework/delivery/LocaleDeterminator.java0.2650999034: -0.1508402904405.697014671636323.64033209502657backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/GenericDropoverMessageBody.java-0.07187990908: 0.309791331283.6877131643532174.5249192645594backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/InteractorException2Status.java-0.2371640763: 0.1517957953223.84375503375503225.67114639296852backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/JsonMessageBody.java-0.07187990908: 0.309791331283.6877131643532174.5249192645594backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/XMLMessageBody.java-0.01971991502: 0.3354501744302.57313064441144166.21865271549729backend/src/main/java/at/dropover/framework/dependencyinjection/GuiceConfig.java-0.1590442549: -0.2583749485252.1283717542532358.4513919125724backend/src/main/java/at/dropover/framework/entity/aws/AWS.java-0.3431133837: -0.3336897415185.48299718194355382.83225492131214backend/src/main/java/at/dropover/framework/entity/aws/BetweenWrapper.java-0.6332873272: -0.118970234280.42056065566511313.32337518194385backend/src/main/java/at/dropover/framework/entity/aws/ConditionWrapper.java-0.08339774936: 0.7402681668279.5174822018960335.1711969010085backend/src/main/java/at/dropover/framework/entity/aws/KeyValue.java-0.002788331017: -0.09708118612308.70350006283064306.237464686119backend/src/main/java/at/dropover/framework/entity/gateway/CreatedAtComparator.java-0.3435330901: 0.5946955524185.3310352847380882.2958828267731backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidGatewayConfigurationException.java-0.4910547196: -0.6198796493131.91830759663642475.4774930404956backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidPersistentDataException.java-0.4036568016: 0.4980365699163.56221777126765113.58627499263565backend/src/main/java/at/dropover/framework/entity/gateway/exception/PersistenceMechanismNotAvailableException.java-0.362259761: 0.5786715019178.5507239866469787.4831795715819backend/src/main/java/at/dropover/framework/exception/InvalidRequestException.java0.2344643639: 0.1277598115394.60489390520985233.45206171470699backend/src/main/java/at/dropover/framework/exception/NotPersistentException.java0.2344643639: 0.1277598115394.60489390520985233.45206171470699backend/src/main/java/at/dropover/framework/internationalization/Translation.java-0.1747442834: 0.2826239617246.4439080629938183.31952498016176backend/src/main/java/at/dropover/framework/util/DoubleMap.java0.2344643639: 0.1277598115394.60489390520985233.45206171470699backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorRequestModel.java0.593989117: -0.4884725128524.7769765253942432.93844771786513backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorResponseModel.java0.6863959445: -0.3952630544558.2344480350827402.7647336075289backend/src/main/java/at/dropover/mail/entity/channel/MailChannel.java0.6565215241: -0.4393028246547.4179034614066417.02126356950333backend/src/main/java/at/dropover/mail/entity/channel/common/MailChannelValidator.java0.7251811111: -0.3287793653572.2772806096563381.242670659041backend/src/main/java/at/dropover/mail/entity/channel/email/EmailChannel.java0.5626897487: -0.170398357513.4445051802176329.97165856296056backend/src/main/java/at/dropover/mail/entity/channel/inmemory/InMemoryMailChannel.java0.7050840992: -0.3533974168565.0008139024494389.21201261249394backend/src/main/java/at/dropover/mail/interactor/SendMailToCreator.java0.5993611111: -0.1295634625526.7219988112619316.75260918539306backend/src/main/java/at/dropover/mail/interactor/validation/SendMailValidation.java0.5284406614: -0.1391473882501.04403767819787319.8551122654369backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateRequestModel.java0.3727994082: -0.6592698728444.6914614084704488.2288743141537backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateResponseModel.java0.2089254535: -0.7137311722385.3580948182256505.85905594364544backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingRequestModel.java-0.05852578908: -0.7700173349288.52280058803984524.0799812790133backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingResponseModel.java-0.3600924638: -0.5755447075179.33543099789054461.1254102842855backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserRequestModel.java0.2916149654: -0.6838599016415.29724611861883496.18914478862183backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserResponseModel.java0.2916149654: -0.6838599016415.29724611861246496.18914478862354backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserRequestModel.java0.47354552: 0.1503717717481.1683133346624226.132130529003backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserResponseModel.java0.8240568252: 0.1806275013608.0769230769231216.33776252042497backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateRequestModel.java0.3393352788: -0.6670569848432.5752013182706490.7497138807207backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateResponseModel.java0.3393352788: -0.6670569848432.57520131826243490.74971388072544backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingRequestModel.java0.4506787743: -0.6799884613472.8890171622728494.9358842730484backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingResponseModel.java-0.1591623919: -0.6550902068252.08559825698265486.87583515308233backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsRequestModel.java0.2068545032: 0.7820705997384.608271868720721.638936528858494backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsResponseModel.java0.04446670711: -0.7855633485325.8129943993315529.1125281793281backend/src/main/java/at/dropover/scheduling/boundary/SetFinalDateRequestModel.java-0.1426526679: -0.7871167196258.0632260159343529.6153846153846backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateRequestModel.java0.3273798071: -0.3410457836428.2465183968173385.2135487818324backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateResponseModel.java0.4104325488: 0.653339155458.3171832707546463.31180835774853backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDateResource.java0.2795048049: -0.4498208437410.9125554711031420.4261508684548backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDatesResource.java0.3947244326: -0.3368111257452.62979127743836383.84270768448977backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingResource.java0.120953795: -0.4618023879353.50645207092487424.30480971293775backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUserResource.java0.4818972275: 0.1198272954484.19219179454467236.01997144860314backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUsersResource.java0.4000971298: -0.2610838424454.5750681211314359.328313558162backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingsResource.java0.06909242246: -0.4304071294334.7291555975381414.141554046598backend/src/main/java/at/dropover/scheduling/entity/Scheduling.java-0.0150781634: -0.7524776211304.2537561632621518.4020348810318backend/src/main/java/at/dropover/scheduling/entity/SchedulingDate.java0.2375415206: -0.4796558112395.71903107308754430.08430997060833backend/src/main/java/at/dropover/scheduling/entity/SchedulingKey.java0.3585504386: -0.09329811484439.5323783757656305.0128109528848backend/src/main/java/at/dropover/scheduling/entity/SchedulingUser.java0.2916149654: -0.6838599016415.2972461186127496.1891447886234backend/src/main/java/at/dropover/scheduling/entity/exception/SchedulingNotPersistentException.java-0.2052213166: -0.6189289312235.40917722713945475.1697270797341backend/src/main/java/at/dropover/scheduling/entity/gateway/DateKey.java0.1483539942: 0.8168362627363.427162573299310.384615384615358backend/src/main/java/at/dropover/scheduling/entity/gateway/LoadSchedulingDate.java-0.1426526688: -0.7871167194258.0632257180669529.6153845536498backend/src/main/java/at/dropover/scheduling/entity/gateway/SchedulingGateway.java0.01759736283: -0.5962856484316.084488997614467.83965614814883backend/src/main/java/at/dropover/scheduling/entity/gateway/aws/DynamoDbSchedulingGateway.java0.471093016: -0.4012998088480.28034236391926404.71894837964487backend/src/main/java/at/dropover/scheduling/entity/gateway/inmemory/InMemorySchedulingGateway.java0.06809405953: -0.5984549878334.3676812341413468.5419134917934backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoScheduling.java0.04066716473: -0.578358549324.43730513204963462.0363054706993backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingDate.java0.3038561473: -0.4193030291419.72937526075606410.54694085185605backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingUser.java0.2916149654: -0.6838599016415.2972461186127496.1891447886234backend/src/main/java/at/dropover/scheduling/exception/DuplicateKeyException.java0.2874916188: 0.6345770534413.8043179890698369.38546545457746backend/src/main/java/at/dropover/scheduling/exception/DuplicateSchedulingPositionException.java-0.2688984157: -0.4790094994212.35379499232462429.8750862813332backend/src/main/java/at/dropover/scheduling/interactor/AddScheduling.java-0.110234006: -0.4776326188269.80095674954055429.4293632518559backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingDate.java0.3619119777: -0.421139415440.74948109000565411.1414146898305backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingUser.java0.2396682939: -0.3949439392396.4890656996743402.66142981286816backend/src/main/java/at/dropover/scheduling/interactor/DeleteSchedulingUser.java0.47354552: 0.1503717717481.16831333465717226.13213052900056backend/src/main/java/at/dropover/scheduling/interactor/GetScheduling.java-0.006551278758: -0.5218582613307.34106050891165443.7460637158698backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulingDate.java0.2670070997: -0.3592987886406.3875476932139391.1224014202186backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulings.java-0.01095380645: -0.3124404134305.7470500995596375.9534342088473backend/src/main/java/at/dropover/scheduling/interactor/SetFinalDate.java-0.1426526688: -0.7871167194258.06322571633774529.6153845532916backend/src/main/java/at/dropover/scheduling/interactor/VoteForSchedulingDate.java0.365932131: -0.3384440307442.20504630265236384.371310789165backend/src/main/java/at/dropover/scheduling/interactor/VoteOption.java0.288635806: 0.7688700308414.2185905047950325.912217347571755backend/src/main/java/at/dropover/scheduling/interactor/validation/SchedulingRequestValidator.java-0.02978290453: -0.4424797629298.92965327461553418.04970027338817backend/src/main/java/at/dropover/site/boundary/CreateSiteRequestModel.java-0.4036568016: 0.4980365699163.56221777126765113.58627499263565backend/src/main/java/at/dropover/site/boundary/CreateSiteResponseModel.java-0.5800514034: 0.349462509399.6955368799282161.68258744122107backend/src/main/java/at/dropover/site/boundary/GetSiteRequestModel.java-0.07187990908: 0.309791331283.6877131643532174.5249192645594backend/src/main/java/at/dropover/site/boundary/GetSiteResponseModel.java-0.5877055339: 0.335964025696.92422809389485166.05230908102618backend/src/main/java/at/dropover/site/boundary/LocationData.java-0.6216550383: -0.484652595584.63222968206279431.70186621648276backend/src/main/java/at/dropover/site/boundary/SiteData.java-0.24639726: 0.6693162316220.500723047872558.13971797162441backend/src/main/java/at/dropover/site/delivery/rest/SiteResource.java-0.1559937763: 0.126825361253.23284969177485233.75456152686286backend/src/main/java/at/dropover/site/delivery/rest/SitesResource.java-0.01778229888: 0.6120688082303.27467768860776.67182211635065backend/src/main/java/at/dropover/site/entity/Location.java0.3107899911: 0.4525357847422.23989193461597128.31576392236667backend/src/main/java/at/dropover/site/entity/Site.java-0.5298142095: 0.2282583203117.88477171362366200.91874022623125backend/src/main/java/at/dropover/site/entity/exception/SiteNotPersistentException.java-0.1185827787: 0.1915897556266.7781408656778212.78906763684614backend/src/main/java/at/dropover/site/entity/gateway/SiteGateway.java-0.03744291752: 0.5121186931296.156214628016109.02761789840241backend/src/main/java/at/dropover/site/entity/gateway/aws/DynamoDbSiteGateway.java0.6330489094: 0.1215266328538.9192420436372235.46986288650777backend/src/main/java/at/dropover/site/entity/gateway/inmemory/InMemorySiteGateway.java0.1066849362: 0.5253535047348.3401678124528104.74325204783327backend/src/main/java/at/dropover/site/entity/pojo/PojoLocation.java0.3014891593: 0.398857105418.87236678268863145.69259634054674backend/src/main/java/at/dropover/site/entity/pojo/PojoSite.java-0.04268298613: 0.4137074792294.2589582152315140.8852414411008backend/src/main/java/at/dropover/site/interactor/CreateSite.java-0.02652114955: 0.07102289099300.1106274210118251.81890614671215backend/src/main/java/at/dropover/site/interactor/GetSite.java-0.05015846834: 0.1513691199291.55233209181364225.80926950105078backend/src/main/java/at/dropover/site/interactor/GetSiteData.java-0.07301341794: 0.5121894278283.27730690474084109.00471971758219backend/src/main/java/at/dropover/site/interactor/namegeneration/AlphabeticBase26Encoder.java-0.362259761: 0.5786715019178.550723986646987.48317957158162backend/src/main/java/at/dropover/site/interactor/namegeneration/BaseEncoder.java-0.241805142: 0.3015375308222.16337786019275177.19683488331071backend/src/main/java/at/dropover/site/interactor/namegeneration/RandomSiteNameGenerator.java-0.2861617736: 0.1995331371206.1033011666909210.21764061435107backend/src/main/java/at/dropover/site/validation/SiteDependentRequestValidator.java0.273470409: 0.1931659341408.7276992861618212.2788280236088backend/src/main/java/at/dropover/todo/boundary/AddTodoListRequest.java-0.7416473358: -0.177515555141.18696721509006332.2756339827159backend/src/main/java/at/dropover/todo/boundary/AddTodoListResponse.java-0.5991538244: -0.344824244492.7791788170643386.4367100192216backend/src/main/java/at/dropover/todo/boundary/AddTodoRequestModel.java-0.6628256406: -0.0748322232969.72570937054013299.0350427877008backend/src/main/java/at/dropover/todo/boundary/ChangeTodoRequestModel.java-0.7914209186: -0.0689259070823.1655907126178297.1230533841831backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListRequestModel.java0.3662752985: 0.04045557318442.32929597028266261.7141413030445backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListResponseModel.java-0.2490537808: -0.7171878264219.5388842871001506.9780421023039backend/src/main/java/at/dropover/todo/boundary/DeleteTodoResponseModel.java0.8185674635: 0.01012427989606.0894058385151271.5329707327272backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsRequest.java-0.7040671881: -0.191633199854.79350207831961336.8457900691533backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsResponse.java-0.7004100737: -0.376756363656.11762288955311396.7737579159525backend/src/main/java/at/dropover/todo/boundary/GetAllTodosRequest.java-0.6268712629: -0.290243182782.74360642014211368.76775901001776backend/src/main/java/at/dropover/todo/boundary/GetAllTodosResponse.java-0.7499658783: -0.144877090238.175096708465155321.7099282356321backend/src/main/java/at/dropover/todo/boundary/GetTodoListRequestModel.java0.4191003954: 0.09226016612461.455525271852244.94398722743574backend/src/main/java/at/dropover/todo/boundary/GetTodoListResponseModel.java-0.2098851319: 0.7676440037233.720563171794526.309106159556336backend/src/main/java/at/dropover/todo/boundary/GetTodoRequestModel.java-0.7066857045: -0.0587265887553.845423456784125293.8213357156709backend/src/main/java/at/dropover/todo/boundary/GetTodosRequestModel.java-0.8224718315: 0.0423520562111.923076923076938261.1002128666834backend/src/main/java/at/dropover/todo/boundary/GetTodosResponseModel.java-0.4798393264: 0.4851272922135.97903241854178117.76525922148545backend/src/main/java/at/dropover/todo/boundary/TodoData.java-0.4986648431: 0.5476236218129.162932268802297.53398209501478backend/src/main/java/at/dropover/todo/boundary/TodoRequestModel.java-0.665375992: 0.202923004868.80231103534935209.120274524847backend/src/main/java/at/dropover/todo/delivery/rest/TodoResource.java-0.1149753248: -0.07402581102268.0842812121719298.7739914562766backend/src/main/java/at/dropover/todo/delivery/rest/TodolistResource.java0.1631687514: -0.1422118486368.79109865651617320.8471376950425backend/src/main/java/at/dropover/todo/delivery/rest/TodolistsResource.java0.2584825751: 0.4771337254403.30109782915446120.35293223825295backend/src/main/java/at/dropover/todo/delivery/rest/TodosResource.java-0.2035569329: 0.02568985686236.01179579484813266.4940907938711backend/src/main/java/at/dropover/todo/entity/Todo.java-0.6900909977: -0.225365695559.85382074528154347.76565487491007backend/src/main/java/at/dropover/todo/entity/TodoList.java-0.5962720014: -0.263837555193.82259211484885360.2197439052013backend/src/main/java/at/dropover/todo/entity/gateway/TodoGateway.java-0.4073374909: -0.1534806358162.22956129811112324.4950632246258backend/src/main/java/at/dropover/todo/entity/gateway/TodoKey.java-0.3937341006: -0.4580783776167.15490129034922423.0992751446458backend/src/main/java/at/dropover/todo/entity/gateway/aws/DynamoDbTodoGateway.java0.6624867594: 0.08872873232549.5777188732917246.08718101603012backend/src/main/java/at/dropover/todo/entity/gateway/inmemory/InMemoryTodoGateway.java-0.4000709573: -4.599060483e-05164.86053401422907274.8252850511364backend/src/main/java/at/dropover/todo/entity/gateway/validation/TodoValidation.java0.1005065415: -0.1940325505346.10317440552393337.62250656548235backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodo.java-0.3711914251: -0.1820169703175.31686231287046333.73282960024875backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodoList.java-0.2788799324: -0.2016895724208.73981624513354340.1012334483429backend/src/main/java/at/dropover/todo/interactor/AddTodo.java-0.28592904: 0.014739849206.18756631618498270.0388212615082backend/src/main/java/at/dropover/todo/interactor/AddTodoList.java-0.07314341343: -0.215906646283.2302398151108344.70357661026065backend/src/main/java/at/dropover/todo/interactor/ChangeTodo.java-0.4378135592: -0.008696025615151.19517980017946277.62546958376333backend/src/main/java/at/dropover/todo/interactor/DeleteTodo.java0.4261223288: 0.01342557889463.9979363102072270.4642760500356backend/src/main/java/at/dropover/todo/interactor/DeleteTodoList.java0.4261223288: 0.01342557889463.9979363101771270.46427605007926backend/src/main/java/at/dropover/todo/interactor/GetAllTodoLists.java-0.3216624119: -0.1872847102193.2496881902145335.4380994287467backend/src/main/java/at/dropover/todo/interactor/GetAllTodos.java-0.380042769: 0.05471981834172.1120819428489257.09652777590605backend/src/main/java/at/dropover/todo/interactor/GetTodo.java-0.3213730109: 0.02148403534193.35447079517007267.85559700092904backend/src/main/java/at/dropover/todo/interactor/GetTodoList.java-0.2092322919: -0.1915048157233.95693506023437336.8042296634011backend/src/main/java/at/dropover/todo/interactor/exception/TodoListNotPersistedException.java0.7037818772: 0.2095801808564.5293221591282206.9652172043571backend/src/main/java/at/dropover/todo/interactor/exception/TodoNotFoundException.java-0.5717885824: 0.1360670276102.68723248523895230.762854335878backend/src/main/java/at/dropover/todo/interactor/validation/TodoRequestValidator.java-0.3347483404: 0.05593311869188.51170408415678256.70375886048043commentcreatorfilesframeworkmailschedulingsitetodo

This view is a pretty cool way for checking the real change behavior of your software including an architectural perspective.

Example

Below, you see the complete data for a data point if you hover over that point:

You can see the following here:

  • In the upper left, you find the name of the module in the gray color
  • You find the complete name of the source code file in the middle
  • You can see the coordinates that MDS assigned to this data point in the color of the selected module

Let's dive even deeper into the chart to get some insights that we can gain from our result.

Discussion

Module "mail"

As already seen in the heatmap, we can see that all files of the "mail" module are very close together. This means that the files changed together very often.

In the XY chart, we can see this clearly when we hover over the "mail" entry in the legend on the upper left. The corresponding data points will be magnified a little bit.

Module "scheduling"

Another interesting result can be found if we take a look at the distribution of the files of the module "scheduling". Especially the data points in the lower region of the chart indicate clearly that these files were changed almost exclusive together.

In the XY chart, we can take a look at the relevant data points by selecting just the "scheduling" data points by deselecting all the other entries in the legend.

Modules "comment", "framework" and "site"

The last thing I want to show you in our example is the common change pattern for the files of the modules "comment", "framework" and "site". The files of these modules changed together very often, leading to a very mixed colored region in the upper middle. In case of our system under investigation, this is perfectly explainable: These three modules were developed at the beginning of the project. Due to many redesigns and refactorings, those files had to be changed all together. For these modules, it would make sense to only look at the recent development activities to find out if the code within these modules is still co-changing.

In the XY chart, just select the modules "comment", "framework" and "site" to see the details.

Summary

We've seen how you can check the modularization of your software system by also taking a look at the development activities that is stored in the version control system. This gives you plenty of hints if you've chosen a software architecture that also fits the commit behavior of your development teams.

But there is more that we could add here: You cannot only check for modularization. You could also e. g. take a look at the commits of your teams, spotting parts that are getting changed from too many teams. You could also see if your actions taken had any effect by checking only the recent history of the commits. You can also redefine what co-changing means e. g. you define it as files that were changed on the same day, which would kind of balance out different commit styles of different developers.

But for now, we are leaving it here. You can experiment with further options on your own. You can find the complete Jupyter notebook on GitHub.